from django.conf.urls.defaults import *

urlpatterns = patterns('badmin.views',
  url(r'^$', 'user.index'),

  url(r'^cadet/new/$', 'cadet.new', name='cadet-new'),
  url(r'^cadet/list/$', 'cadet.list', name='cadet-list'),
  url(r'^cadet/view/(?P<first_name>\w+)_(?P<last_name>\w+)/$', 'cadet.view', name='cadet-view'),
  url(r'^cadet/edit/(?P<first_name>\w+)_(?P<last_name>\w+)/$', 'cadet.edit', name='cadet-edit'),
  url(r'^cadet/delete/(?P<first_name>\w+)_(?P<last_name>\w+)/$', 'cadet.delete', name='cadet-delete'),

  url(r'^squadron/new/$', 'squadron.new', name='sqn-new'),
  url(r'^squadron/list/$', 'squadron.list', name='sqn-list'),
  url(r'^squadron/view/(?P<number>[0-9f]+)/$', 'squadron.view', name='sqn-view'),
  url(r'^squadron/edit/(?P<number>[0-9f]+)/$', 'squadron.edit', name='sqn-edit'),
  url(r'^squadron/delete/(?P<number>[0-9f]+)/$', 'squadron.delete', name='sqn-delete'),
)